/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.st.entity;

import org.hibernate.validator.constraints.Length;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * 物料检验标准Entity
 * @author HOHD
 * @version 2020-12-16
 */
@Table(name="st_check_standard_detail", alias="a", columns={
		@Column(name="id", attrName="id", label="id", isPK=true),
		@Column(name="check_project", attrName="checkProject", label="检验项目"),
		@Column(name="standard_content", attrName="standardContent", label="标准要求"),
		@Column(name="sort_number", attrName="sortNumber", label="排序"),
		@Column(name="parent_id", attrName="parentId.id", label="父 id"),
	}, orderBy="a.id ASC"
)
public class StCheckStandardDetail extends DataEntity<StCheckStandardDetail> {
	
	private static final long serialVersionUID = 1L;
	private String checkProject;		// 检验项目
	private String standardContent;		// 标准要求
	private Integer sortNumber;		// 排序
	private StCheckStandard parentId;		// 父 id 父类
	
	public StCheckStandardDetail() {
		this(null);
	}


	public StCheckStandardDetail(StCheckStandard parentId){
		this.parentId = parentId;
	}
	
	@Length(min=0, max=50, message="检验项目长度不能超过 50 个字符")
	public String getCheckProject() {
		return checkProject;
	}

	public void setCheckProject(String checkProject) {
		this.checkProject = checkProject;
	}
	
	@Length(min=0, max=100, message="标准要求长度不能超过 100 个字符")
	public String getStandardContent() {
		return standardContent;
	}

	public void setStandardContent(String standardContent) {
		this.standardContent = standardContent;
	}
	
	public Integer getSortNumber() {
		return sortNumber;
	}

	public void setSortNumber(Integer sortNumber) {
		this.sortNumber = sortNumber;
	}
	
	@Length(min=0, max=36, message="父 id长度不能超过 36 个字符")
	public StCheckStandard getParentId() {
		return parentId;
	}

	public void setParentId(StCheckStandard parentId) {
		this.parentId = parentId;
	}
	
}